#define radios(x)
    #setLocal(radiovalues = getArrayBySplit(x.values,","))
    <div class="radio">
         #for(r : radiovalues)		
              <label>
					<input name="form-field-radio"  id="_#(x.index??)_radio#(for.index)"  #(x.checked??) #(disabled??) type="radio" class="ace #(x.lg??)" />
					<span class="lbl">#(r??)</span>
			  </label>
         #end
	</div>
	<input type="hidden" id="_#(x.index??)" data-type="radios" name="#(table??x.table).#(x.index??)" value="#(x.value??0)">
	<script type="text/javascript">
		$(function(){
			 #for(r : radiovalues)		
				$("#_#(x.index??)_radio#(for.index)").bind("click",function(){
					$("#form_token").val(1);
					if($("#_#(x.index??)_radio#(for.index)").is(":checked")){
						$("#_#(x.index??)").val("#(for.index)");
					}
				});
			 #end
		});
	</script>
#end